package game;

public enum Suit {
	UNDEFINED(0), HEARTS(1), DIAMONDS(2), CLUBS(3), SPADES(4);
	
	private final int value;
	
    private Suit(int value) {
        this.value = value;
    }
    public int getValue() {
        return value;
    }
    public static Suit intToSuit(int i){
    	switch (i) {
		case 0:
			return Suit.UNDEFINED;
		case 1:
			return Suit.HEARTS;
		case 2:
			return Suit.DIAMONDS;
		case 3:
			return Suit.CLUBS;
		case 4:
			return Suit.SPADES;
		default:
			return null;
		}
    }
}
